import { da } from "element-plus/es/locales.mjs"

export interface RequestData {
  steam_flow_SV_range_min: number
  steam_flow_SV_range_max: number
  steam_header_temperature_SV_range_min: number
  steam_header_temperature_SV_range_max: number
  incinerator_temperature_SV_range_min: number
  incinerator_temperature_SV_range_max: number
  incinerator_oxygen_content_SV_range_min: number
  incinerator_oxygen_content_SV_range_max: number
  incinerator_pressure_SV_range_min: number
  incinerator_pressure_SV_range_max: number
}

export interface ResponseData {
  steam_flow_SV_range_min: number
  steam_flow_SV_range_max: number
  steam_header_temperature_SV_range_min: number
  steam_header_temperature_SV_range_max: number
  incinerator_temperature_SV_range_min: number
  incinerator_temperature_SV_range_max: number
  incinerator_oxygen_content_SV_range_min: number
  incinerator_oxygen_content_SV_range_max: number
  incinerator_pressure_SV_range_min: number
  incinerator_pressure_SV_range_max: number
}

export interface ResponseItem {
  ItemId: string

  GroupName: string

  Value: any

  Quality: string

  Timestamp: Date
  Description: string
}

export interface RequestAcc {
  steam_flow_SV_range: Array<number>
  steam_flow_PV: Array<number>
  air_preheater_temperature_PV: Array<number>
  steam_header_temperature_SV_range: Array<number>
  steam_header_temperature_PV: Array<number>
  incinerator_temperature_SV_range: Array<number>
  incinerator_temperature_PV: Array<number>
  incinerator_oxygen_content_SV_range: Array<number>
  incinerator_oxygen_content_PV: Array<number>
  incinerator_pressure_SV_range: Array<number>
  incinerator_pressure_PV: Array<number>
  backward_grate_wind_pressure_PV: Array<number>
  forward_grate_wind_pressure_PV: Array<number>
}

export interface SysLog {
  id: number | null
  message: string
  type: number
  createtime: Date
}

export interface OpcItem {
  value: number
  range: number
}

export interface AccReqItem {
  //acc的请求数据
  steam_flow_SV_range: Array<number>
  steam_flow_PV: Array<number>
  air_preheater_temperature_PV: Array<number>
  steam_header_temperature_SV_range: Array<number>
  steam_header_temperature_PV: Array<number>
  incinerator_temperature_SV_range: Array<number>
  incinerator_temperature_PV: Array<number>
  incinerator_oxygen_content_SV_range: Array<number>
  incinerator_oxygen_content_PV: Array<number>
  incinerator_pressure_SV_range: Array<number>
  incinerator_pressure_PV: Array<number>
  backward_grate_wind_pressure_PV: Array<number>
  forward_grate_wind_pressure_PV: Array<number>
}

export interface OpcRealItem extends AccReqItem {
  //炉排1#逆推进到位信号
  //炉排1#逆推退到位信号
  grate_line1_backward_forpositon: Boolean
  grate_line1_backward_backpositon: Boolean
  grate_line2_backward_forpositon: Boolean
  grate_line2_backward_backpositon: Boolean
  grate_line3_backward_forpositon: Boolean
  grate_line3_backward_backpositon: Boolean
  grate_line4_backward_forpositon: Boolean
  grate_line4_backward_backpositon: Boolean

  //炉排1#顺推进到位信号
  //炉排1#顺推退到位信号
  grate_line1_forward_forpositon: Boolean
  grate_line1_forward_backpositon: Boolean
  grate_line2_forward_forpositon: Boolean
  grate_line2_forward_backpositon: Boolean
  grate_line3_forward_forpositon: Boolean
  grate_line3_forward_backpositon: Boolean
  grate_line4_forward_forpositon: Boolean
  grate_line4_forward_backpositon: Boolean

  backward_grate_com_wind_leftpress:number,
  backward_grate_com_wind_rightpress:number,

  //喷水减温调节阀控制输出
  water_spray_cooldown_control1:number,
  water_spray_cooldown_control2:number,

  //喷水减温调节阀位置反馈
  water_spray_cooldown_position1:number,
  water_spray_cooldown_position2:number,

  //一次风蒸汽预热器过热蒸汽调节阀控制输出信
  once_wind_steam_overheat_adjuster_output:number,
   //一次风蒸汽预热器过热蒸汽调节阀阀位反馈信
  once_wind_steam_overheat_adjuster_fb:number,

  //1、2、3、4逆推炉排速度
  backword_grate_speed1:number,
  backword_grate_speed2:number,
  backword_grate_speed3:number,
  backword_grate_speed4:number,

  //1、2、3、4顺推炉排速度
  forward_grate_speed1:number,
  forward_grate_speed2:number,
  forward_grate_speed3:number,
  forward_grate_speed4:number,

  //1、2、3、4推料器速度
  ejector_speed1:number,
  ejector_speed2:number,
  ejector_speed3:number,
  ejector_speed4:number,

  //一次风
  once_wind:number,

  //二次风
  twice_wind:number
}
//export type LoginCodeResponseData = ApiResponseData<string>

// export type LoginResponseData = ApiResponseData<{ token: string }>

// export type UserInfoResponseData = ApiResponseData<{ username: string; roles: string[] }>
